﻿<%@ Page Title="配送企业汇总统计(低值)" Language="C#" MasterPageFile="~/Master/MasterPage.master"
    AutoEventWireup="true" CodeBehind="Company_PS_DZ.aspx.cs" Inherits="HZ.Supervise.Web.Enterprise.Company_PS_DZ" %>

<%@ Register Src="~/Common/AreaControls.ascx" TagName="AreaControl" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li><a href="Company_PS.aspx">配送企业汇总统计(高值)</a></li>
            <li class="active"><a href="#">配送企业汇总统计(低值)</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td align="right">
                    配送企业：
                </td>
                <td align="left">
                    <asp:TextBox ID="txtCompanyName_PS" runat="server"></asp:TextBox>
                </td>
<%--                <td align="right">
                    开始时间：
                </td>
                <td align="left">
                    <asp:TextBox ID="txtStratTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
                </td>
                <td align="right">
                    截止时间：
                </td>
                <td align="left">
                    <asp:TextBox ID="txtEndTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
                </td>--%>
                         <td align="right">
                                <asp:Label ID="lblStartTime" runat="server" Text="时间："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtStratTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM',readOnly:true})"
                                Width="63px"></asp:TextBox>-<asp:TextBox ID="txtEndTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM',readOnly:true})"
                                 Width="63px"></asp:TextBox>
                            </td><TD></TD><TD></TD>
                                            <td rowspan="2">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查  询" OnClick="btnQuery_Click" CssClass="btn" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    所在地区：
                </td>
                <td align="left">
                    <uc3:AreaControl ID="ddlArea" runat="server" />
                </td>
                <td align="right">
                    排序字段：
                </td>
                <td align="left">
                    <asp:DropDownList ID="OrderFileds" runat="server" Width="126px">
                        <%--<asp:ListItem Value="CompanyID">配送企业</asp:ListItem>--%>
                        <asp:ListItem Value="PurchaseAmount" Selected="True">采购金额(元)</asp:ListItem>
                        <asp:ListItem Value="DistributeAmount">配送金额(元)</asp:ListItem>
                        <asp:ListItem Value="WarehouseAmount">入库金额(元)</asp:ListItem>
<%--                        <asp:ListItem Value="ReturnAmount">退货金额(元)</asp:ListItem>--%>
                    </asp:DropDownList>
                </td>
                <td align="right">
                    排序方式：
                </td>
                <td align="left">
                    <asp:DropDownList ID="OrderType" runat="server" Width="126px">
                        <asp:ListItem Value="DESC">降序</asp:ListItem>
                        <asp:ListItem Value="ASC">升序</asp:ListItem>
                    </asp:DropDownList>
                </td>

            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwPSLInfo" runat="server" AutoGenerateColumns="False" CssClass="mainlist"
        OnRowCommand="gvwInfo_RowCommand" AllowSorting="True" EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager_CompanyPS.PageSize * (AspNetPager_CompanyPS.CurrentPageIndex - 1)%></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="rowno" HeaderText="序号" Visible="false" />
            <asp:BoundField DataField="CompanyName" HeaderText="配送企业" />
<%--            <asp:TemplateField HeaderText="订单金额">
                <ItemTemplate>
                    <hz:HzLinkButton ID="lbnP" runat="server" CausesValidation="True" CommandName="lbnP"
                        CommandArgument='<%#Eval("CompanyID") +"|"+Eval("CompanyName") %>' Text='<%#Eval("PurchaseAmount")%>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="配送金额">
                <ItemTemplate>
                    <hz:HzLinkButton ID="lbnD" runat="server" CausesValidation="True" CommandName="lbnD"
                        CommandArgument='<%#Eval("CompanyID")+"|"+Eval("CompanyName") %>' Text='<%#Eval("DistributeAmount")%>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="入库金额">
                <ItemTemplate>
                    <hz:HzLinkButton ID="lbnW" runat="server" CausesValidation="True" CommandName="lbnW"
                        CommandArgument='<%#Eval("CompanyID")+"|"+Eval("CompanyName") %>' Text='<%#Eval("WarehouseAmount")%>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="退货金额" Visible="False">
                <ItemTemplate>
                    <hz:HzLinkButton ID="lbnR" runat="server" CausesValidation="True" CommandName="lbnR"
                        CommandArgument='<%#Eval("CompanyID")+"|"+Eval("CompanyName") %>' Text='<%#Eval("ReturnAmount")%>' />
                </ItemTemplate>
            </asp:TemplateField>--%>
            <asp:BoundField DataField="PurchaseAmount" HeaderText="订单金额" Visible="true" />
            <asp:BoundField DataField="DistributeAmount" HeaderText="配送金额" Visible="true" />
            <asp:BoundField DataField="WarehouseAmount" HeaderText="入库金额" Visible="true" />
<%--            <asp:BoundField DataField="ReturnAmount" HeaderText="退货金额" Visible="false" />--%>
        </Columns>
    </asp:GridView>
    <div class="page">
        <span style="width: 30%; float: left; text-align: left">
            <hz:HzButton ID="btnExcel1" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" />
            <hz:HzButton ID="btnPrint" runat="server" CssClass="btn" Text="打印支付单" Visible="false"
                OnClick="btnPrint_Click" />
        </span><span style="width: 70%; text-align: right; float: right">
            <webdiyer:AspNetPager ID="AspNetPager_CompanyPS" runat="server" AlwaysShow="true"
                OnPageChanged="AspNetPager_CompanyPS_PageChanged">
            </webdiyer:AspNetPager>
        </span>
    </div>
    <br />
    <div class="listip">
        <ul>
            <li>说明:<asp:Label ID="lblMemo" runat="server"></asp:Label>
            </li>
        </ul>
    </div>
</asp:Content>
